﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Publicuse.Entity.other
{
    public class BaiDuOCRError
    {
        public string error_code { get; set; }
        public string error_msg { get; set; }
    }

    public class BaiDuOCRJD
    {
        public List<WordsResult> words_result { get; set; } = new List<WordsResult>();
        public double log_id { get; set; }

        public double words_result_num { get; set; }

        public double pdf_file_size { get; set; }
    }

    public class WordsResult
    {
        public string words { get; set; }
    }

    public class BaiDuOCR
    {
        public string refresh_token { get;set;}

        public double expires_in { get; set; }

        public string session_key { get; set; }

        public string access_token { get; set; }

        public string scope { get; set; }

        public string session_secret { get; set; }
    }

    public class BaiDuOCRResult
    {
        public double results_num { get; set; }

        public double log_id { get; set; }

        public double pdf_file_size { get; set; }

        public List<BaiDuOCRResultWord> results { get; set; } = new List<BaiDuOCRResultWord>();
    }

    public class BaiDuOCRResultWord
    { 
        public string words_type { get; set; }
        public Words words { get; set; }
    }

    public class Words
    {
        public Wordslocation words_location { get; set; }

        public string word { get; set; }
    }

    public class Wordslocation
    {
        public double top { get; set; }

        public double left { get; set;}

        public double width { get; set; }

        public double height { get; set; }
    }
}
